package com.fansl.allround.daemon.quartz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fansl.allround.daemon.quartz.entity.ScheduleJob;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author fansl
 * @Description: TODO
 * @date 2020/1/10 17:43
 */
public interface ScheduleJobMapper extends BaseMapper<ScheduleJob> {
    @Update("update schedule_job set execute_num = execute_num+1,status=#{param.status} where job_id = #{jobId}")
    Integer updateExecuteDetail(@Param("jobId") Long jobId, @Param("param") ScheduleJob update);
}
